<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
include('lib/include.php');

if (isLogin() == false)
{
	redirect('index.php');
}

$action = '';
$pid = '';
$cid = '';
$qty = '';
$menu_out = '';

$shipping_fee = 0;
$shipping_country = '';
$tax_fee = 0;
$tax_pro = '';

$total_total = 0;
$tax_total = 0;
$shipping_total = 0;

if (isset($_SESSION['cart_from_page']))
{
	if ($_SESSION['cart_from_page'] == 'clearance')
	{	
		$menu_out = getMenuHtmlClearance();
	}
	if ($_SESSION['cart_from_page'] == 'parts')
	{
		$menu_out = getMenuHtml();
	}
}

if (isset($_GET['qty']))
{
	$qty = $_GET['qty'];
}


if (isset($_GET['action']))
{
	$action = $_GET['action'];	
	if (isset($_GET['pid']))
    {
		$pid = $_GET['pid'];
		if ($action == 'remove')
		{			
			delCart($pid, $pid);
		}
		if ($action == 'update')
		{
			cartQtyUpdate($pid, $pid, $qty);
		}
	}
}

// shipping_fee
if (isset($_POST['shipping_fee']))
{
	$shipping_fee = $_POST['shipping_fee'];
	$_SESSION['shipping_fee'] = $_POST['shipping_fee'];
}
else
{
	if (isset($_SESSION['shipping_fee']))
	{
		$shipping_fee = $_SESSION['shipping_fee'];
	}
}

// shipping_country
if (isset($_POST['shipping_country']))
{
	$shipping_country = $_POST['shipping_country'];
	$_SESSION['shipping_country'] = $_POST['shipping_country'];
}
else
{
	if (isset($_SESSION['shipping_country']))
	{	
		$shipping_country = $_SESSION['shipping_country'];
	}
}

// tax_fee
if (isset($_POST['tax_fee']))
{
	$tax_fee = $_POST['tax_fee'];
	$_SESSION['tax_fee'] = $_POST['tax_fee'];
}
else
{
	if (isset($_SESSION['tax_fee']))
	{	
		$tax_fee = $_SESSION['tax_fee'];
	}
}

//tax_pro
if (isset($_POST['tax_pro']))
{
	$tax_pro = $_POST['tax_pro'];
	$_SESSION['tax_pro'] = $_POST['tax_pro'];
}
else
{
	if (isset($_SESSION['tax_pro']))
	{	
		$tax_pro = $_SESSION['tax_pro'];
	}
}

//echo $shipping_fee.'<br/>';
//echo $shipping_country;


//showArr($_SESSION['cart']);

$totalQtys = getCartTotalQtys();
$cartGrandTotal = cartItemGrandTotal();

$shipping_total = mny_format($shipping_fee);
$tax_total = mny_format(($cartGrandTotal + $shipping_total)* $tax_fee);
$total_total = mny_format($shipping_total + $tax_total + $cartGrandTotal);

$param = 's='.$shipping_total.'&t='.$tax_total.'&tt='.$total_total;

?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>888 Accessories</title>

<meta name="keywords" content="" />

<meta name="description" content="" />

<link rel="shortcut icon" href="favicon.ico">

<link rel="stylesheet" type="text/css" href="css/css.css" />
<script type="text/javascript" src="scripts/jquery.min.js.1.4.2.js"></script>
<script type="text/javascript" src="cart/cart.js"></script>

<script type="text/javascript" src="ddaccordion.js"></script>

<script type="text/javascript">

ddaccordion.init({
	headerclass: "headerbar", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

</script>

<style type="text/css">

.urbangreymenu{
width: 225px; /*width of menu*/
}

.urbangreymenu .headerbar{
font: bold 13px Verdana;
color: white;
background: #606060 url(arrowstop.gif) no-repeat 8px 6px; /*last 2 values are the x and y coordinates of bullet image*/
margin-bottom: 0; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 7px 0 7px 31px; /*31px is left indentation of header text*/
}

.urbangreymenu .headerbar a{
text-decoration: none;
color: white;
display: block;
}

.urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of content*/
}

.urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

.urbangreymenu ul li a{
font: normal 12px Arial;
color: black;
background: #E9E9E9;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}

.urbangreymenu ul li a:visited{
color: black;
}

.urbangreymenu ul li a:hover{ /*hover state CSS*/
color: white;
background: black;
}

</style>
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
-->
</style>
</head>

<body onload="initPage();">

<div id="main">

<div id="main1">

<div class="logo2"><img src="images/banner.jpg" width="1000" height="84" />

</div>

</div>

<div id="main2">

<div id="body1">

<table width="1000" border="0" cellpadding="0" cellspacing="10">

<!--DWLayoutTable-->

<tr>

<td width="228" rowspan="2" valign="top">

<div class="testimonials">
  
  <img src="images/logo.jpg" width="225" height="300" /></div>
<br />

<div class="testimonials">
  
  <div align="center">
  <span class="body2text2">Search</span>
  <label>
  <input name="textfield" type="text" id="textfield" maxlength="5" />
  </label>
    
  <span class="style2">GO</span></div>
</div>
<br />

<div class="leftnav"></div>
<div class="urbangreymenu">
	<?php echo $menu_out; ?>

<!--
<h3 class="headerbar"><a href="#">Cell Phone Parts</a></h3>
<ul class="submenu">
<li><a href="#" >LCDS</a></li>
<li><a href="#">DIGITIZERS</a></li>
<li><a href="#">BATTERY DOORS</a></li>
<li><a href="#">BATTERIES</a></li>
<li><a href="#">FLEX</a></li>
<li><a href="#">HOUSING</a></li>
<li><a href="#">CHARGING PORTS</a></li>
<li><a href="#">BUTTON</a></li>
<li><a href="#">SIM</a></li>
<li><a href="#">CAMERAS</a></li>
<li><a href="#">LENS</a></li>
<li><a href="#">SPEAKERS</a></li>
<li><a href="#">KEYPADS</a></li>	
<li><a href="#">MID PLATE</a></li>
<li><a href="#">GEVEY</a></li>
<li><a href="#">TOOLS</a></li>	
<li><a href="#">MISC</a></li>
</ul>

<h3 class="headerbar"><a href="#">Accessories</a></h3>
<ul class="submenu">
<li><a href="#" >CAR CHARGERS</a></li>
<li><a href="#">HOME CHARGERS</a></li>
<li><a href="#">SCREEN PROTECTORS</a></li>
<li><a href="#">POUCHES</a></li>
<li><a href="#">CAR HOLDERS</a></li>
<li><a href="#">HEADSETS</a></li>
<li><a href="#">CABLES</a></li>
<li><a href="#">FM TRANSMITTERS</a></li>
<li><a href="#">TPU</a></li>
<li><a href="#">CASES</a></li>
<li><a href="#">ARM BANDS</a></li>
<li><a href="#">SLEEVES</a></li>
<li><a href="#">BUMPERS</a></li>
<li><a href="#">SNAP ON</a></li>
<li><a href="#">MEMORY CARDS</a></li>
<li><a href="#">SPEAKERS</a></li>
<li><a href="#">MISC</a></li>		
</ul>

<h3 class="headerbar"><a href="#">Cell Phones</a></h3>
<ul class="submenu">
<li><a href="#">ACER</a></li>
<li><a href="#">ALIENWARE</a></li>
<li><a href="#">APPLE</a></li>
<li><a href="#">CASIO</a></li>
<li><a href="#">HTC</a></li>
<li><a href="#">INQ</a></li>
<li><a href="#">LG</a></li>
<li><a href="#">MOTOROLA</a></li>
<li><a href="#">PANTECH</a></li>
<li><a href="#">RIM</a></li>
<li><a href="#">SAMSUNG</a></li>
<li><a href="#">SONY ERICSSON</a></li>
<li><a href="#">TRION</a></li>
</ul>

<h3 class="headerbar"><a href="#">LED Signs</a></h3>
<ul class="submenu">	
</ul>
<br />
-->
</div>

</td>

<td width="742" height="17" align="center" valign="top" bgcolor="#F4F4F4">

<div id="menu1">

<a href="#" >My Account</a>:&nbsp;
<a href="checkout.php">Basket</a>:&nbsp;
<a href="#" >Contact</a>
<a href="#" ></a>&nbsp;|&nbsp;
Click here to <a href="login.php">login</a> or <a href="registration.php">create an account</a>&nbsp;|&nbsp;
<label>Shopping Cart:</label> <span class="style1"><?php echo $totalQtys;?></span> items - <span class="style1">$<?php echo $cartGrandTotal; ?></span></div></td>

</td>

</tr>

<tr>

<td rowspan="2" valign="top" class="body2">

<table width="89%" border="0" cellpadding="0" cellspacing="10">

<!--DWLayoutTable-->

<tr>

<td width="720" height="41" valign="top" class="body2text"><h1>Checkout Page</h1></td>
</tr>

<tr>

<td height="30" valign="top" class="body2text2">

  <p align="justify">
    Prices are in <span class="style1">Canadian Dollars (CAD)
    </span><br />
    The items listed below are currently in your shopping bag:  </p></td>
</tr>

<tr>

<td height="25" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#AE241A">
  <!--DWLayoutTable-->
  <tr>
    <td width="100" height="25" align="center" valign="middle" class="body2text3" >Product ID</td>
    <td width="325" align="center" valign="middle" class="body2text3" >Product Name</td>
    <td width="45" align="center" valign="middle" class="body2text3" >Qty</td>
    <td width="125" align="center" valign="middle" class="body2text3" >Price</td>
  <td width="125" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
</table></td>
</tr>

<tr>

<td height="25" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" >0000001</td>
    <td width="325" align="center" valign="middle" class="body2text4" >Samsung Galaxy S3 (III)</td>
    <td width="45" align="center" valign="middle" class="body2text4" >1</td>
    <td width="125" align="center" valign="middle" class="body2text4" >$599.99</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><u>Remove</u></td>
  </tr>-->
	<?php echo cartList888(); ?>
</table>
</td>
</tr>

<form name="shipping_tax_form" id="shipping_tax_form" action="checkout.php" method="post">
<tr>

<td height="25" valign="top">


<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
  <!--DWLayoutTable-->
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" >Shipping</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_s" id="radio_ca" value="ca" onchange="shipping_onchange('ca');"/>
      Within Canada
      <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_s" id="radio_us" value="us" onchange="shipping_onchange('us');"/>
      Within USA
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_s" id="radio_in" value="in" onchange="shipping_onchange('in');"/>
      International
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
	<td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
    <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_s" id="radio_notapp" value="notapp" onchange="shipping_onchange('notapp');"/>
      Not Applicable
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
	<td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <input type="hidden" name="shipping_fee" id="shipping_fee" value="<?php echo $shipping_fee;?>"/>
    <input type="hidden" name="shipping_country" id="shipping_country" value="<?php echo $shipping_country; ?>"/>
    <input type="hidden" name="total_quantities" id="total_quantities" value="<?php echo $totalQtys; ?>"/>
  </tr>
</table>

</td>
</tr>

<tr>

<td height="25" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
  <!--DWLayoutTable-->
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" >Sales Tax</td>
    <td width="325" align="left" valign="middle" class="body2text4" >
    <input type="radio" name="radio_t" id="radio_on" value="radio" onchange="tax_onchange('on');"/>
      Ontario
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_al" value="radio" onchange="tax_onchange('al');"/>
      Alberta
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_bc" value="radio" onchange="tax_onchange('bc');"/>
      British Columbia
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_sa" value="radio" onchange="tax_onchange('sa');"/>
      Saskatchewan
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_mb" value="radio" onchange="tax_onchange('mb');"/>
      Manitoba
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_qc" value="radio" onchange="tax_onchange('qc');"/>
      Quebec</td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_ns" value="radio" onchange="tax_onchange('ns');"/>
      Nova Scotia
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_nb" value="radio" onchange="tax_onchange('nb');"/>
      New Brunswick
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_pei" value="radio" onchange="tax_onchange('pei');"/>
      P.E.I.
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_nl" value="radio" onchange="tax_onchange('nl');"/>
      Newfoundland
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_yu" value="radio" onchange="tax_onchange('yu');"/>
      Yukon
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_nw" value="radio" onchange="tax_onchange('nw');"/>
      North West Territories
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_na" value="radio" onchange="tax_onchange('na');"/>
      Nunavut
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_oc" value="radio" onchange="tax_onchange('oc');"/>
      Other Country
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  	<td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
  <tr>
    <td width="125" height="25" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="325" align="left" valign="middle" class="body2text4" ><input type="radio" name="radio_t" id="radio_notapp" value="radio" onchange="tax_onchange('notapp'); "/>
      Not Applicable
        <label></label></td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  	<td width="100" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  	<input type="hidden" name="tax_fee" id="tax_fee" value="<?php echo $tax_fee;?>"/>
    <input type="hidden" name="tax_pro" id="tax_pro" value="<?php echo $tax_pro;?>"/>
  </tr>  
</table></td>
</tr>
</form>

<tr>

<td height="25" valign="top">
<form id="paypal_form" action="paypal.php" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="125" height="25" align="left" valign="middle" class="body2text4" ><strong>SUBTOTAL</strong></td>
    <td width="325" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="right" valign="middle" class="body2text4" id="sub_total">$<?php echo $cartGrandTotal; ?></td>
      <input type="hidden" name="hidden_sub_total" id="hidden_sub_total" value="<?php echo $cartGrandTotal; ?>"/>
  
  </tr>
  <tr>
    <td width="125" height="25" align="left" valign="middle" class="body2text4" ><strong>SHIPPING</strong></td>
    <td width="325" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="right" valign="middle" class="body2text4" id="shipping_total">$<?php echo $shipping_total; ?></td>
      <input type="hidden" name="hidden_shipping_total" id="hidden_shipping_total" value="<?php echo $shipping_total; ?>"/>
  </tr>
   <tr>
    <td width="125" height="25" align="left" valign="middle" class="body2text4" ><strong>TAX-HST</strong></td>
    <td width="325" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="right" valign="middle" class="body2text4" id="tax_total" >$<?php echo $tax_total; ?></td>
      <input type="hidden" name="hidden_tax_total" id="hidden_tax_total" value="<?php echo $tax_total; ?>"/>
  </tr>
   <tr>
    <td width="125" height="25" align="left" valign="middle" class="body2text4" ><strong>GRAND TOTAL</strong></td>
    <td width="325" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="45" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="125" align="center" valign="middle" class="body2text4" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  <td width="100" align="right" valign="middle" class="body2text4" id="total_total">$<em><strong><?php echo $total_total; ?></strong></em></td>
      <input type="hidden" name="hidden_total_total" id="hidden_total_total" value="<?php echo $total_total; ?>"/>
  </tr>
</table>
</form>
</td>
</tr>

<tr>

<td height="25" valign="top">

  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td width="350" height="42" align="right" valign="middle" class="body2text4" >
      	<img src="images/paypal.gif" width="145" height="42" style="cursor:pointer;" onclick="return doCheckout();"/>
      </td>
      <td width="20" >&nbsp;</td>
      <td width="350" valign="top" >
      	<img src="images/button.jpg" width="139" height="21" style="cursor:pointer;" onclick="toHomePage();"/>
      </td>
    </tr>
  </table></td>

</tr>

</table>          

</td>

</tr>

</table>

</div>

</div>

<div id="bottom"> 

<div class="bottom2">

<a href="requiring_a_mobile_locksmith.html" title="Requiring a Mobile Locksmith">HOME</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="ottawa_locksmith.html" title="Ottawa Locksmith">ABOUT US</a> &nbsp;&nbsp;|&nbsp;&nbsp;
<a href="finding_the_right_locksmith_online.html" title="Finding the right locksmith online">CATEGORIES</a>&nbsp;&nbsp;|&nbsp; 
<a href="keys_to_look_for_when_hiring_a_locksmith.html" title="Keys to look for when hiring a locksmith">CONTACT US</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="intercom_systems.html" title="Intercom Systems">MY ACCOUNT</a><a href="cornwall_locksmith.html" title="Cornwall Locksmith"></a><br /> 

<em><strong>&copy; 888 Accessories. All Rights Reserved</strong></em>

</div>

</div>

</div>

</body>

</html>